const Router = require("koa-router");

const {
  createOrder,
  getOrderList,
  confirmOrder,
} = require("../controller/order.controller");

const router = new Router({ prefix: "/order" });

// 生成订单
router.post("/create", createOrder);

// 获取订单列表
router.get("/list", getOrderList);

// 确认收货
router.post("/confirm", confirmOrder);

module.exports = router;
